package ucm;

import model.User;

/**
 * UCEditUser
 *
 * Primary Actor: User
 * Goal: Edit User
 * Precondition: Connected to database. User exists on database. User is not logged in.
 * Postcondition: User is updated on database
 *
 * @author Tobias Robinson
 */
public class UCEditUser {

    public UCEditUser() {
        run();
    }

    /**
     * 1. Actor selects Edit User.
     * 2. The system requests the actor to enter user info.
     * 4. System verifies user input.
     * 5. System updates User on database.
     * 6. System notifies actor user has been updated.
     */
    public void run() {
        User.loadEditUserView("user");
    }

}
